home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 7329 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.6 KB  |  41 lines

  1. Path: druid.borland.com!usenet
  2. From: Jeff Jenkins <jjenkins@wpo.borland.com>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: BC++. Pls help me with precompiled headers...
  5. Date: Thu, 22 Feb 1996 11:36:55 -0800
  6. Organization: Borland International
  7. Message-ID: <312CC5D7.29F8@wpo.borland.com>
  8. References: <Dn65GG.M19@twisto.eng.hou.compaq.com>
  9. NNTP-Posting-Host: beastly.borland.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0b5 (Win95; I)
  14.  
  15. jhenell@bangate.eur.compaq.com wrote:
  16. > Using Borland C++ v4.52:
  17. > I get these (for me) rather confusing error messages.
  18. > When compiling I get the following error message:
  19. > "Warning LEATHER.CPP 47: Cannot create pre-compiled header: code in
  20. > header"
  21. > (the 47th line  is the constructor of one of the classes,
  22. > "Leather::Leather() (" )This^^^^^^^^^^^^^^^^ ctor is a non-inline method. This is, the 
  23. definition of the function body is going to be generated each time you 
  24. #include the header-file that contains this definition.  That's why you 
  25. see the errors below: you have #include'd the header file in more than 
  26. one source module, and therfore forced the compiler to generate multiple 
  27. definitions.  The linker see's all these function definitions and starts 
  28. to complain because it is confused as which one you want it to use.
  29.  
  30. -- jrj
  31.  
  32. > This time it went through the compilation, but not the
  33. > Building/Linking:
  34. > Linker Error: Leather::Leather() defined in module LEATHER.CPP is
  35. > duplicated in module RUBBER.CPP
  36. > and this Error is repeated for all methods in the class.
  37. > / a newbie feelin' lame & frustrated..
  38.